<!DOCTYPE html>
<html>
<head>
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<meta charset="utf-8">
	<title>列表渲染</title>
</head>
<script type="text/javascript" src="../js/vue.js"></script>
<body>
	<div id="app">
		<input type="button" name="" value="add1" @click="add">
		{{count}}
		<br/>
		<input type="checkbox" id="checkbox" v-model="checked">
		<label for="checkbox">{{ checked }}</label>
	</div>
	<script type="text/javascript">
		var vm = new Vue({
			el: "#app",
			data(){
				return {count: 0,checked:''}
			},
			methods: {
				add: function(){
					return this.count++;
				}
			}
		})
	</script>
</body>
</html>